<template>
  <web class="web" :src="webUrl"></web>
</template>

<style scoped>
.web {
  flex: 1;
}
</style>

<script>
  import utils from '../utils.js';
  // let modal = weex.requireModule('modal');
  export default {
    data: {
      webUrl: ''
    },
    created() {
      let url = utils.getQueryParam(weex.config.bundleUrl, 'url');
      if (url) {
        this.webUrl = url;
      }
    }
  }
</script>
